import HomePage from "../pages/home.vue";
import Home1Page from "../pages/home1.vue";
import LoginPage from "../pages/Management/login/login.vue";
import BackgroundhomePage from "../pages/management/background/backgroundhome.vue";
import CheckinhomePage from "../pages/management/background/checkin/checkinhome.vue";
import InformationinputPage from "../pages/management/background/checkin/informationinput.vue";
import CustomeraddPage from "../pages/management/background/checkin/customeradd.vue";
import ChooseroomPage from "../pages/management/background/checkin/chooseroom.vue";
import ConfirmorderPage from "../pages/management/background/checkin/confirmorder.vue";
import CheckoutroomPage from "../pages/management/background/checkout/checkoutroom.vue";
import ConfirmcheckoutPage from "../pages/management/background/checkout/confirmcheckout.vue";
import StatisticalhomePage from "../pages/management/background/statistical/statisticalhome.vue";
import RoomhomePage from "../pages/management/background/room/roomlist.vue";
import RoomaddPage from "../pages/management/background/room/roomadd.vue";
import TheroomlistPage from "../pages/management/background/theroom/theroomlist.vue";
import TheroomaddPage from "../pages/management/background/theroom/theroomadd.vue";
import CheckpeoplesearchPage from "../pages/management/background/checkpeople/checkpeoplesearch.vue";
import PeoplesearchresultsPage from "../pages/management/background/checkpeople/peoplesearchresults.vue";
import SupertubelistPage from "../pages/management/background/supertube/supertubelist.vue";
import SupertubeaddPage from "../pages/management/background/supertube/supertubeadd.vue";
import ReservationcheckinPage from "../pages/management/background/checkin/reservation/reservationcheckin.vue";
import ReservationqueryPage from "../pages/management/reservation/Reservationquery.vue"
import QueryresultsPage from "../pages/management/reservation/queryresults.vue"
import CreateorderPage from "../pages/management/reservation/createorder.vue"
import PayPage from "../pages/management/reservation/pay.vue"
import personalcenterPage from "../components/personalcenter.vue"
import DynamicRoutePage from "../pages/dynamic-route.vue";
import RequestAndLoad from "../pages/request-and-load.vue";
import PersionaldataPage from "../pages/management/persional/Persionaldata.vue"
import changepasswordPage from "../pages/management/persional/changepassword.vue"
import AboutPage from "../pages/management/persional/about.vue"
import HotelPage from "../pages/management/background/hotelmesagges/hotel.vue";
import OrderconditionPage from "../pages/management/orderquery/ordercondition.vue";
import OrderListPage from "../pages/management/orderquery/orderList.vue";
import NotFoundPage from "../pages/404.vue";
import NotCheckInPage from "../pages/management/background/checkin/notcheckin/notcheckin.vue";

var routes = [
  {

    path: "/",
    component: Home1Page,

  },
  {
    path: "/login/",
    component: LoginPage,

  },
  {
    path: "/backgroundhome/",
    component: BackgroundhomePage
  },
  {
    path: "/checkinhome/",
    component: CheckinhomePage
  },
  {
    path: "/reservationcheckin/",
    component: ReservationcheckinPage
  },
  {
    path: "/informationinput/",
    component: InformationinputPage
  },
  {
    path: "/customeradd/",
    component: CustomeraddPage
  },
  {
    path: "/chooseroom/",
    component: ChooseroomPage
  },
  {
    path: "/confirmorder/",
    component: ConfirmorderPage
  },
  {
    path: "/checkoutroom/",
    component: CheckoutroomPage
  },
  {
    path: "/confirmcheckout/",
    component: ConfirmcheckoutPage
  },
  {
    path: "/statisticalhome/",
    component: StatisticalhomePage
  },
  {
    path: "/roomhome/",
    component: RoomhomePage
  },
  {
    path: "/roomadd/",
    component: RoomaddPage
  },
  {
    path: "/theroomlist/",
    component: TheroomlistPage
  },
  {
    path: "/theroomadd/",
    component: TheroomaddPage
  },
  {
    path: "/checkpeoplesearch/",
    component: CheckpeoplesearchPage
  },
  {
    path: "/peoplesearchresults/",
    component: PeoplesearchresultsPage
  },
  {
    path: "/supertubelist/",
    component: SupertubelistPage
  },
  {
    path: "/supertubeadd/",
    component: SupertubeaddPage
  },
  {
    path: "/reservationquery/",
    component: ReservationqueryPage
  },
  {
    path: "/queryresults/",
    component: QueryresultsPage
  },
  {
    path: "/createorder/",
    component: CreateorderPage
  },
  {
    path: "/pay/",
    component: PayPage
  },
  {
    path: "/personalcenter/",
    component: personalcenterPage
  },

  {
    path: "/persionaldata/",
    component: PersionaldataPage
  },
  {
    path: "/changepassword/",
    component: changepasswordPage
  },
  {
    path: "/notcheckin/",
    component: NotCheckInPage
  },
  {
    path: "/hotel/",
    component: HotelPage
  },
  {
    path: "/about/",
    component: AboutPage
  },
  {
    path: "/ordercondition/",
    component: OrderconditionPage
  },
  {
    path: "/orderList/",
    component: OrderListPage
  },
  {
    path: "/dynamic-route/blog/:blogId/post/:postId/",
    component: DynamicRoutePage
  },
  {
    path: "/request-and-load/user/:userId/",
    async: function (routeTo, routeFrom, resolve, reject) {
      // Router instance
      var router = this;

      // App instance
      var app = router.app;

      // Show Preloader
      app.preloader.show();

      // User ID from request
      var userId = routeTo.params.userId;

      // Simulate Ajax Request
      setTimeout(function () {
        // We got user data from request
        var user = {
          firstName: "Vladimir",
          lastName: "Kharlampidi",
          about: "Hello, i am creator of Framework7! Hope you like it!",
          links: [
            {
              title: "Framework7 Website",
              url: "http://framework7.io"
            },
            {
              title: "Framework7 Forum",
              url: "http://forum.framework7.io"
            }
          ]
        };
        // Hide Preloader
        app.preloader.hide();

        // Resolve route to load page
        resolve(
          {
            component: RequestAndLoad
          },
          {
            context: {
              user: user
            }
          }
        );
      }, 1000);
    }
  },
  {
    path: "(.*)",
    component: NotFoundPage
  }
];

export default routes;
